#ifndef QUADRATIC_VERTEX_CLUSTER_H
#define QUADRATIC_VERTEX_CLUSTER_H

#include "vertexcluster.h"

class QuadraticVertexCluster : public VertexCluster
{
public:
	QuadraticVertexCluster( DeformableMesh& mesh, int clusterId );
	~QuadraticVertexCluster(void);

	void preLoad();
	void load();
	void updateInternal( float dt );

	void updateQVector( LAMatrix& Sp );
	void divideAComponentByDet( LAMatrix& ATilde );
protected:

	// q tilde vectors
	std::vector<float> qTilde;
	LAMatrix ATildeqqInverse;
};

#endif